#!/usr/bin/python
#Auther : MillionLee

'''
Do dummypost

do dummypost for everyone in the userlist
'''

from getDummyText import getDummyText
from doOAuthUpdate import OAuthUpdate
from userListMorau import getUserList


poster = OAuthUpdate()

for (key, (secret, name, lastUpdateDate)) in getUserList().items():
    try:
        poster.setToken(key, secret)
        poster.update(getDummyText())
    except Exception, e:
        print e, name
        continue